<?php

/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2017/3/13
 * Time: 下午4:01
 *
 */
class a {

}

function getShortSlogan() {
//    $url = $_SERVER['php'];

  $url = 'aaa' . __FILE__;
  if (strpos($url, '/')) {
    echo '----->';
    $arr = explode('/', $url);
    echo $arr[1];
    $text = ucwords(str_ireplace('-', ' ', $arr[1]));
  }
  else {
    $text = ucfirst($url);
  }
  return $text;

}


try {
  $a = '';
} catch (Exception $e) {
} //getShortSlogan();*/



function a(){
  return;
}

$aa = a();

if(empty($aa)){
  echo '<---->';
}

if (isset($aa)){
  echo '===>';
}

if (is_null($aa)){
  echo 'null';
}
echo gettype($aa);